package org.dtrd.modules.doctor.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.dtrd.modules.doctor.entity.bean.UserBankDetail;
import org.dtrd.modules.doctor.entity.bean.UserBankListInfo;
import org.dtrd.modules.doctor.entity.po.DtrdEntRdUserBank;
import org.dtrd.modules.doctor.entity.request.UserBankListRequest;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author QR
 * @since 2021-12-14
 */
public interface IDtrdEntRdUserBankService extends IService<DtrdEntRdUserBank> {

    List<UserBankListInfo> getUserBankList(UserBankListRequest request);

    /**
     * 获取用户默认的银行卡信息
     * @param doctorId 用户id
     * @return 银行卡信息
     */
    UserBankDetail getUserDefaultBank(Integer doctorId);

    boolean saveOrUpdateUserBank(UserBankDetail dto);

    boolean removeUserBank(Integer dataId);
}
